package com.example.demo.controller.usercontroller;

import com.example.demo.common.Result;
import com.example.demo.entity.CheckupDetail;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.*;
import com.example.demo.service.CheckupDetailService;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 体检详情表(CheckupDetail)表控制层
 *
 * @author makejava
 * @since 2025-01-28 11:54:31
 */
@RestController
@RequestMapping("user/checkupDetail")
public class CheckupDetailController {
    /**
     * 服务对象
     */
    @Resource
    private CheckupDetailService checkupDetailService;


    @GetMapping("childinfo")
    @Operation(description = "获取体检详情")
    public Result<CheckupDetail> userinfo(@RequestParam("checkupId") Long checkupId) {
        return Result.success(checkupDetailService.getById(checkupId));
    }


}

